home *** CD-ROM | disk | FTP | other *** search
/ Varios Español / Varios Español.iso / DBASE5 / TEMPLATE.ZIP / LABEL.DEF < prev    next >
Text File  |  1994-10-12  |  8KB  |  166 lines

  1. //---------------------------------------------------------------------------
  2. // LABEL.DEF     NPI label object data selectors
  3. // Copyright (c) 1993 Borland International, Inc.
  4. //
  5. // This include file contains all the selectors required for labels.
  6. // *** DO NOT CHANGE ANY OF THE NUMBERS BELOW ***
  7. //
  8. //---------------------------------------------------------------------------
  9. // NOTE:
  10. // Selectors listed in the following table which are shown to have
  11. // "Value: Number" will sometimes return the null string instead
  12. // of the numeric zero.  For logical compares, null is the same
  13. // as zero, however when emitting the value to the output file
  14. // the null string must be converted to a numeric zero explicitly.
  15. // A user defined function is used in the FORM.COD template program
  16. // called NUL2ZERO() for converting null strings to explicit numeric
  17. // zeros.
  18. //---------------------------------------------------------------------------
  19. {
  20. selectors
  21. #lstoff
  22. //
  23. // ELEMENT selectors (FOREACH loop elements)
  24. //
  25. ELEMENT            1000, // All elements types by row & column
  26. BAND_ELEMENT       1102, // Band element (always the first element)
  27. FLD_ELEMENT        1130, // Field element
  28. TEXT_ELEMENT       1085, // Text element
  29. //
  30. // Selectors common to all elements
  31. //
  32. ELEMENT_TYPE        001, // Element types found in labels are:
  33.                          //     BAND_ELEMENT
  34.                          //     FLD_ELEMENT
  35.                          //     TEXT_ELEMENT
  36. ROW_POSITN          225, // Row number of Element
  37.                          // Menu Path: None - Value: Number
  38. COL_POSITN          093, // Column number of Element
  39.                          // Menu Path: None - Value: Number
  40. SYS_FLEN            053, // Element length in layout
  41. SYS_INAME           068, // reserved
  42. SYS_FMT             071, // reserved
  43. SYS_PAGE            090, // reserved
  44. SYS_ROW             092, // reserved
  45. SYS_ATRB            094, // reserved
  46. //
  47. // Frame level selectors - can be accessed at any time
  48. //
  49. NAME                040, // Name of NPI label object
  50.                          // Menu Path: None - Value: String
  51. FRAME_CLASS         181, // Object type (called MENU_TYPE in application.def)
  52.                          // Menu Path: None - Value:11=form, 12=label, 13=report
  53. FRAME_VER           150, // Version #
  54.                          // Menu Path: None - Value: Number
  55. FRAME_FILE_TYPE     151, // File type of object
  56.                          // Menu Path: None - Value: Number
  57. FRAME_PATH          042, // Path of object
  58.                          // Menu Path: None - Value: String
  59. FRAME_NUM_OF_FIELDS 153, // Number of fields
  60.                          // Menu Path: None - Value: Number
  61. LABEL_TALL          170, // Label height
  62. LABEL_WIDE          182, // Label width
  63. LABEL_LMARG         172, // Label left margin
  64. LABEL_VSPACE        173, // Label vertical spacing
  65. LABEL_HSPACE        174, // Label horizontal spacing
  66. LABEL_NUP           175, // Labels across page - number up
  67. LABEL_ROWS          176, // Rows of labels
  68. dBASE_III_PLUS      215, // Is this a 3+ report
  69.                          // Menu Path: None - Value: 0:No 1:Yes
  70. PRINT_FORM          216, // Print form name
  71.                          // Menu Path: PU   - Value: String
  72. PRINT_DESTINATION   217, // Where to send output
  73.                          // Menu Path: PDW  - Value: 0: Printer 1:Dos file
  74. PRINT_DOS_FILE      218, // Name of DOS file
  75.                          // Menu Path: PDN  - Value: String
  76. PRINT_DRIVER        219, // Name of Printer driver
  77.                          // Menu Path: PDP  - Value: String
  78. PRINT_TO_SCREEN     220, // Echo outpu to screen
  79.                          // Menu Path: PDE  - Value: Numeric
  80. PRINT_PITCH         221, // Text Pitch
  81.                          // Menu Path: PCT  - Value: 0:Default 1:Pica 2:Elite
  82.                          //                          3:Condensed
  83. PRINT_QUALITY       222, // Quality Print
  84.                          // Menu Path: PCQ  - Value: 0:Default 1:Yes 2:No
  85. PRINT_NEW_PAGE      223, // When to goto New page
  86.                          // Menu Path: PCN  - Value: 0:Before 1:Both 2:None
  87.                          //                          3:After
  88. PRINT_PAUSE         224, // Wait between pages
  89.                          // Menu Path: PCW  - Value: 0:No 1:Yess
  90. PRINT_ADVANCE       226, // Advance page using
  91.                          // Menu Path: PCA  - Value: 0:Form Feeds 1:Line Feeds
  92. PRINT_START_CODES   227, // Starting control codes
  93.                          // Menu Path: PCS  - Value: String
  94. PRINT_END_CODES     228, // Ending control codes
  95.                          // Menu Path: PCE  - Value: String
  96. PRINT_START_PAGE    229, // Begin on page
  97.                          // Menu Path: POB  - Value: String
  98. PRINT_END_PAGE      230, // End on page
  99.                          // Menu Path: POB  - Value: String
  100. PRINT_FIRST_PAGE    231, // First page number
  101.                          // Menu Path: POE  - Value: String
  102. PRINT_COPIES        232, // Number of copies
  103.                          // Menu Path: PON  - Value: String
  104. PRINT_PAGE_LENGTH   233, // Length of page
  105.                          // Menu Path: PPL  - Value: String
  106. PRINT_LEFT_OFFSET   234, // Offeset from left
  107.                          // Menu Path: PPO  - Value: String
  108. PRINT_LINE_SPACING  235, // Spacing of lines
  109.                          // Menu Path: PPL  - Value: 0:Single 1:Double 2:Triple
  110. PRINT_PAGE_SIZE     236, // Page size
  111.                          // Menu Path: PPL  -
  112.                          // Value: 0:default 1:letter 2:legal 3:a4 4:b5 5:executive
  113. //
  114. // Text attribute selectors (FOREACH Text_element x .... NEXT)
  115. //
  116. TEXT_ITEM           095, // Static text data
  117. //
  118. // Field attribute selectors (FLD_ELEMENT)
  119. //
  120. FLD_FILENAME        060, // Name of file this field is in
  121.                          // Menu Path: None - Value: String
  122. FLD_FIELDNAME       061, // Field name
  123.                          // Menu Path: None - Value: String
  124. FLD_FIELDTYPE       063, // Where the data is coming from
  125.                          // Menu Path: None - Value: 0:dBF field 1:calc'ed
  126.                          //                    2:sum 3:predefined 4:memory var
  127. FLD_VALUE_TYPE      064, // Field data type in dBF
  128.                          // Menu Path: None - Value: 67:char 68:date 70:float
  129.                          //                      76:logical 77:memo 78:numeric
  130.                          //  Try chr(fld_value_type) return C:char D:date etc.
  131. FLD_LENGTH          065, // Length of field
  132.                          // Menu Path: None - Value: Number
  133. FLD_DECIMALS        066, // Number of decimal positions
  134.                          // Menu Path: None - Value: Number
  135. FLD_REPWIDTH        067, // width of template in label
  136. FLD_PREDEFINE       070, // Predef fld 0:date 1:time 2:recno 3:pageno
  137. FLD_TEMPLATE        074, // Picture template
  138.                          // Menu Path: FMT - Value: String
  139. FLD_PICFUN          075, // Picture functions
  140.                          // Menu Path: FMP - Value: String
  141. FLD_DESCRIPT        076, // Calc & sum description
  142.                          // Menu Path: FMD - Value: String
  143. FLD_EXPRESSION      077, // Calc expression
  144.                          // Menu Path: FME - Value: String
  145. FLD_STYLE           096, // Field style
  146. #lston
  147. ;
  148. //
  149. // Values returned by Fld_Style
  150. //
  151. enum User_Font  =   31,
  152.      Soft_space =  128,
  153.      Bold       =  256,
  154.      Italic     =  512,
  155.      Underline  = 1024,
  156.      Superscript= 2048,
  157.      Subscript  = 4096;
  158. //
  159. // Values returned by Fld_Fieldtype
  160. //
  161. enum  Tabl_data=0,   // Table field from a database
  162.       Calc_data,     // Calculated expression
  163.       Summ_data,     // Summary ie. Average, Count, etc.
  164.       Pred_data;     // Predefined ie. Date, Page, etc.
  165. }
  166.